package com.hn.javamail.service;

import com.hn.javamail.result.Result;

import javax.mail.MessagingException;
import java.util.Map;

/**
 * @author Ts-SuSu
 * @date 2024/4/27 21:35
 * @description 邮件业务接口
*/
public interface MailService {

    /**
     * 发送邮件
     * @param params
     * @return
     */
    Result sendMail(Map<String, Object> params) throws MessagingException;

    /**
     * 邮箱验证码
     * @param params
     * @return
     * @throws MessagingException
     */
    Result sendCode(Map<String,Object> params) throws MessagingException;
}
